REM ##### ASSEMBLY_H should be relative to webkit directory
set WEBKIT_DIR=%1
set ASSEMBLY_H=%2
set OFFSET_EXTRACTOR_A=%3

set RUBY=..\tools\ruby-1.9.3\bin\ruby.exe
set OFFLINEASM_DIR=Source\JavaScriptCore\offlineasm
set LLINT_DIR=Source\JavaScriptCore\llint

cd "%WEBKIT_DIR%"
"%RUBY%" "%OFFLINEASM_DIR%\asm.rb" "%LLINT_DIR%\LowLevelInterpreter.asm" %OFFSET_EXTRACTOR_A% %ASSEMBLY_H%
